The tab I'm working on has 12 editfields, the scrollpanel does not display all of it, the last 2 editfields gets chopped/cut off. They are only displayed when I click into them and put in some input. May I know how to solve this?
You can use Scrollpanel.add these edit boxes to scrollpanel and add scrollpanel to Form.
Related
I want to edit menu item in Neto but could not reach the right template. My current theme is midsummer and I am editing suggested template header/template.html (Please check attached screen shot) but I cant see any changes at front end. I dont know why ?
There is a inbuilt potion for refreshing cache in Neto, I clicked on that and now I can get the result.
I have saved data in sqlite. Now i want to edit data. I want to create a model and give list of saved records in it. when user click on any row display on model it will go into edit mode . Is it good approach or should i create another page ??
I think to provide them with edit button/icon and when they click on edit button you can change all labels to Text edit format.
reasons -
This will be a mobile app, hence user needs to touch on the screen to scroll/change to another page. if the user mistakenly clicks on the label then the label will get change to edit mode and I guess that's bad user experience.
Every time you need to save the changes when the user clicks on the label (more database operation for a single word change).
Instead of this just provide edit button/icon, when they click on edit button, make the same page change to edit mode and show them save button (replace edit button).
Hope this will help you.
I don't see the link with the data model. However, when it comes to design, it is better if the user clicks on a row to open a new page.
If you want to switch to an edition mode, then you need a button dedicated to this feature.
Think "WYSIWYG" --> "What You See Is What You Get".
I am taking an existing UI component that we have based on QTableWidget and placing two of them inside QTabWidget pages. I want to allow the user to enter data into the table in the first tab and then when they press a button to move to the second tab and have the first cell in edit mode.
I am using the editItem method of QTableWidget to edit a given QTableWidgetItem. The trouble is that something is occurring to stop the edit (or maybe it never starts in the first place).
If I call editItem a second time then it fails, but if I click on the cell then it will enter the edit mode with the cell highlighted and the cursor blinking. I was just wondering if there is a way to do this programmatically that I may have missed?
One option would be to simulate a tab key press and then shift-tab but I have not been able to do this. I can simulate the tab but if I try to add the shift modifier then it jut produces a normal tab.
This is my tab code that works:
QApplication::postEvent(tableWidget, new QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier));
This is my shift-tab code that doesn't work:
QApplication::postEvent(tableWidget, new QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier));
Any suggestions would be appreciated.
It looks like shift-tab is actually reported as Qt::Key_Backtab rather than Qt::Key_Tab with the shift modifier as I had expected...
I think this will do the job for us but would welcome any better solutions.
i've a little comboBox, and i want to fill it with 6 entries... .
i wrote this code:
CComboBox* dropdownList = ((CComboBox*)GetDlgItem(IDC_PROGRAMDROPDOWN));
dropdownList->Clear();
dropdownList->AddString(L"test");
dropdownList->AddString(L"test2");
dropdownList->InsertString(2,L"test3");
dropdownList->InsertString(3,L"test4");
dropdownList->InsertString(4,L"test5");
As you can see I tried AddString(), and InsertString(). both with no effect. I also tried it just with AddString() which should be the correct way at initializing it.
But, my combobox is empty. I already debugged it, and this lines are hit but with no effect.
Do you have any idea?
In the dialog editor, make sure you resize the ComboBox item so that its height is big enough to contain all of the items when the ComboBox is expanded. By default, it'll only be the height of the "edit control" bit of the ComboBox, which limits the expanded height.
So, in the dialog editor, click on the dropdown button bit of the Combo Box and you should see the drag handles change a bit. Drag out the new size to account for all the items in the dropdown list.
thanks for all your answers. But it was an ugly Failure by my IDE -.-. I just recreated the UI-Element and it worked...
I recreated it with the same properties (Copy & Paste)
I'm having difficulties with an MFC application menu drop down. I want the drop down to display all items when it is clicked. Instead it displays arrows which the user must click in order to show the drop down items.
See the pic below. Any help would be appreciated. Thanks!
I believe this is a feature of the MFC feature pack where the menu will hide rarely used items. You should be able to disable this feature using the CMFCMenuBar::SetShowAllCommands method.