This is my code fo

void CallhistoryWindow::on_button_buffer1()
{
	m_TextView.set_buffer(m_refTextBuffer1);
}

void CallhistoryWindow::on_button_buffer2()
{
	m_TextView.set_buffer(m_refTextBuffer2);
}

if I already call the on_button_buffer1() function the m_TextView is already set the buffer m_refTextBuffer1. But if I already change the m_refTextBuffer1(the textfile) value the m_TextView wont change anymore you may need to close the widget to get updated. All I need is to if you change the value of m_refTextBuffer1(the textfile) the m_TextView will update also. Please help me on this... thanks!

Try to discard the buffer and set it again.

Try to discard the buffer and set it again.

how to discard a buffer?.. thanks!

But the TextView is already fill the buffer. just if you call the functions on_button_buffer1() and on_button_buffer2() they just set the m_TextView.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.