@Christian-Ehrlicher thank you, that worked, I tried /n before :). I paid more attention now.
Posts made by Abderaouf
TableView header Customized
I am trying to break the header of my table view. I assigned a title to each column using QStringList and sethorizontalheaderlabels, when using the regular <br> with a given column width, the header doesn't break and only part of it appears in the column's header. Any suggestion, please. Thank's in advance.
RE: Manually selecting Items from a database
Yeah, I can display the database in a QSqlTableModel in the dialog window, the question is can I select manually the items I need and then display them in a QTablewidget where I can add the quantity of each item and calculate the price per row?
Manually selecting Items from a database
I am about to start coding a program that gives the user the choice of selecting items from a database. The database contains a table with few columns (reference, description, unit, price). The program connects to the database through a pushbutton and displays all the items in a dialog window, the user will be able to select the items he wants using a checkbox for example. My question is, is that possible with sql database or is there any other way to do that.
Save into a word file .doc, .docx
After making some calculations using Qlabels and QlineEdits and filling up some tables, I just want to save my work into a word file in .doc or .docx formats. I am pretty much lost between QAxWidget and QFile classes.
Would you please advise which one is easier for use and what is the proper way to implement it.
RE: QTableWidget Operations over columns
One more challenge. I am trying to create a menu in my QTabWidget using the below basic code:
fileMenu = MenuBar().addMenu(tr("&File"));
helpMenu = MenuBar() ->addMenu(tr("&Help"));
I have a the error message though, it says the following:
C:\computing\Qt Designer\cfadvisor.cpp:488: error: 'menuBar' was not declared in this scope
fileMenu = menuBar()->addMenu(tr("&File"));
Any advise on how to correct this error. this is the Qt version I have.