Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.7k Posts
  • how can I set qdialog parent with another process(x11 based)'s main window

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    JonBJ
    @java9d I know nothing about "transient parent". When I set QDialog parent with main window in identical process, the problem is still here: Yes, as I said, it seems to be the behaviour of GNOME (at least by default) that dragging a dialog drags its parent/main window with it.
  • comboBox->additem() crash application..

    Solved
    27
    0 Votes
    27 Posts
    5k Views
    TheCipo76T
    @JonB because i think the problem is not there.. arg1 was not used.. it's a blanking form slot.. void inserisciarticolo::on_comboBox_Cliente_currentTextChanged(const QString &arg1) { if (AzzeraI == true) { for (int i=0;i<10;i++) { array_Codice[i]->setText(""); array_Descrizione[i]->setText(""); array_Qta[i]->setValue(0); array_Origine[i]->setCurrentText(""); array_Fornitore[i]->setCurrentText(""); } } } You're right!! The problem was "AzzeraI" var.. i set it to false on dialog loading and all works! Thanks to all
  • QDockWidget problem with focus when undocked

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    gde23G
    On Widows it's also Qt 5.11 which is the same as on the Debian machine (also installed over the Qt-Installer)
  • Question about QCursor constructor

    Unsolved
    4
    0 Votes
    4 Posts
    571 Views
    Christian EhrlicherC
    @lniwn said in Question about QCursor constructor: if (!bmm.isNull()) { I would guess the '!' is wrong here. Please create a bug report and post the bug number here. Thx.
  • This topic is deleted!

    Unsolved
    11
    0 Votes
    11 Posts
    313 Views
  • Disable QSlider's valueChanged on keyboard arrow keys

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    S
    @dheerendra Yes..I'll try with EventFilter
  • Qt5 Charts and Ubuntu 16.04

    Solved
    12
    0 Votes
    12 Posts
    5k Views
    SGaistS
    Glad you found out thanks for sharing !
  • # with arabic characters is not displayed correctly

    Unsolved
    2
    0 Votes
    2 Posts
    300 Views
    SGaistS
    Hi, What version of Qt are you using ? What locale are you using ? Can you provide a minimal complete example showing that behaviour ?
  • Which Widget is used with the ItemDelegate?

    Unsolved
    6
    0 Votes
    6 Posts
    693 Views
    E
    Thanks a lot @VRonin's for the link but I still leave the topic open because in case of blocking I'll just come back here and post my problem to get your help
  • Run .bat file

    Solved
    14
    0 Votes
    14 Posts
    6k Views
    M
    Yes, launching .bat via cmd /c behaves as I need (its output goes to its console). I'm just asking why direct call of bat file redirects its output to my Qt app. Just in case you or somebody else know. EDIT: Hmm, probably because individual commands of bat file are executed inside the process which called system().
  • QAbstractItemModel Decoration Tooltip

    Unsolved
    3
    0 Votes
    3 Posts
    757 Views
    VRoninV
    It's a mess. You need to subclass the view and reimplement viewportEvent() to capture QEvent::ToolTip then you need to load the delegate for that index and get him to tell you where the decoration is (it's hidden inside the style so I'm not even sure you can extract it)
  • Show low level Modbus packet in UI

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    aha_1980A
    @Mark81 Then please file a suggestion at bugreports.qt.io (and give a link to it here).
  • Preventing QLocale::toString(double) from displaying number in scientific notation?

    Solved
    4
    0 Votes
    4 Posts
    980 Views
    VRoninV
    @Qt_User72653 said in Preventing QLocale::toString(double) from displaying number in scientific notation?: but if I enter 1000000 1000000 is an integer literal in C++ QLocale::toString(1000000.0,'f') should work
  • QStandardItemModel: where to set constraints on the data?

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    dheerendraD
    In addition to @VRonin @JonB said, constraints for data is not function of Model. You should decided what data to be inserted in to the model. If you want to display the data in date format, you can use the idea suggested by JonB. If you want to display the date/time with using in appropriate editable format, then you need to write the your own delegate.
  • QtNetworkAuth - OAuth2 - Microsoft Azure

    Unsolved
    1
    0 Votes
    1 Posts
    361 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Sqlite change Row Value

    Unsolved
    31
    0 Votes
    31 Posts
    7k Views
    A
    @jsulm Thank you! I will try to do that instead the bindvalue!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • QTextEdit minimal height but expanding problem

    Unsolved
    17
    0 Votes
    17 Posts
    18k Views
    JonBJ
    @SGaist Yep, what you suggest does "work". But like @mrjj's solution it requires code to calculate the text height and then sets the QTextEdits maximum or fixed height. @mrjj & I are "surprised" that there does not seem to be any QSizePolicy or flag which can make QTextEdit occupy the minimum vertical size necessary for its content, like, say, QLabel does. Is that indeed right? QTextEdit seems to have some in-built minimal height? Is that right, is that documented?
  • building littlenavmap on windows 7

    Unsolved
    6
    0 Votes
    6 Posts
    810 Views
    M
    Yes. My current error is : "/release\main.o:main.cpp:(.text+0x61d): undefined reference to `qInitResources_atools()'" I have followed the instructions in BUILD.txt for both projects but might be missing something. Could someone help please? Thank you