Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QPainter & QPrinter

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    K
    because my text direction is rtl ( persian ) and if i set x to painter.device()->width() entire of the text will be placed at the page out now i'm trying to print the page by rich text ( QTextDocument ) at the other hand i face with the problem of width at div tag
  • New install, Problems compiling some examples

    Solved
    19
    0 Votes
    19 Posts
    6k Views
    mrjjM
    @wazza Ok :) I didnt know that "2013 spands two versions 11.0 and 12.0" Thats good info.
  • Crash on quit on default project

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    R
    @mrjj said in Crash on quit on default project: @rXpSwiss Can you try with 100% clean default project ? That is no this->setCentralWidget(ui->vwMain); or any other stuff :) If that crashes, i would guess on DLL issues I did do that too. So might be DLL ? Because it did work with QT Creator but not with VS2015 @J.Hilk said in Crash on quit on default project: @rXpSwiss what else is there in your application? Give us more info :) Nothing, well now there is because I still had to start making it it just crashes when I close it. But before that there was nothing that the default code and a UI file.
  • 0 Votes
    8 Posts
    4k Views
    NIXINN
    Yes, a file with size 0 kb is being created
  • App crashes on model->rowCount()

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    SGaistS
    Yes, that's what I meant.
  • Are separate builds required for all Linux distributions?

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    E
    @Elsworth55 That's an old article and things aren't that simple. There are at least three systems nowadays which try to solve this problem (and some other problems, too): Flatpak, ubuntu snaps and AppImage. Despite of the base distributions and the standard file system organization you can't guarantee that certain libraries are actually installed on the target. And 4x8 is quite much, you have to install 8 distros in some way or another to do the compilation, and the most tedious part is learning each packaging system. It's better to learn only one system and do two compilations, 32 and 64 bits. At the moment Flatpak seems to be the best overall system, ubuntu does good hyping and marketing with their product, and AppImage is the most straightforward way to go. See for example http://www.phoronix.com/scan.php?page=news_item&px=Snaps-v-Flatpaks-Linux-Distros.
  • Add print button to Qt Installer Fw license page

    Unsolved
    1
    0 Votes
    1 Posts
    246 Views
    No one has replied
  • QOpenGLWidget FullScreen problem

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    For Qt 5.4.1 that might be related to the version of Angle. Note that this version of Qt is currently old, if you need LTS then you should go with the 5.6 series.
  • QTableView set mapper current index on row click

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    P
    @VRonin you 're right, this is enough.
  • Cannot connect to MySQL server

    Unsolved
    17
    0 Votes
    17 Posts
    6k Views
    jsulmJ
    @t0msk said in Cannot connect to MySQL server: Where should be $QTDIR Where your Qt installation containing src subfolder is.
  • WPF within Qt

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    MassiM
    @Chris-Kawa Thanks for your reply! indeed I realized how it is complex and it's better to go either with WPF alone or Qt with some extra libraries...
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    3 Views
  • How to hide vertical header but show horizontal header in QTableView

    Unsolved
    2
    0 Votes
    2 Posts
    4k Views
    SGaistS
    Hi, Can you share how you are setting up your view ? Which version of Qt are you using ? On which platform ?
  • Custom completer does not show if there is no space before word

    Solved
    2
    0 Votes
    2 Posts
    425 Views
    SikarjanS
    Found the bug. The text under curser function returned the line break as well. When I printed out the value in the function it did not show but it did when I printed out the prefix value (the returned value) in the keyPressed function. After adding a trimmed() to the return value the code works again as expected.
  • How to deploy a Qt application that uses SQLite on OS X

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    No, it just takes place.
  • How to do something at some specified time

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    A
    @VRonin How about multi date & time? the count of date & time is dynamic so i don't know how many event user enter to my app Can i use only one QTimer? or i have to create a QTimer for each events ?
  • How to use QTextStream setprecision

    Unsolved
    7
    0 Votes
    7 Posts
    9k Views
    tomyT
    @VRonin it behaves as: /*stringstream*/ ss << fixed << setprecision(16) Yes, unfortunately.
  • QScrollbar on mouse hover

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    Cobra91151C
    I have figured it out and now it works. I post code here, so others can find a solution. Code: qApp->installEventFilter(this); bool Test::eventFilter(QObject *object, QEvent *event) { if (event->type() == QEvent::Enter) { qDebug() << "Enter"; this->setStyleSheet("Your style here"); } if (event->type() == QEvent::Leave) { qDebug() << "Leave"; this->setStyleSheet("Your style here"); } return QObject::eventFilter(object, event); }
  • How to search for a specific character in a QString

    Solved
    30
    0 Votes
    30 Posts
    46k Views
    VRoninV
    that will work too but the loop must go on untill the decimal part is 0 so qFuzzyIsNull is appropriate.
  • QList: Append a custom class.

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    B
    Thank you for your help. The problem was here: MachineSet &operator = (const MachineSet &other); changing to MachineSet operator = (const MachineSet &other); works. Thank you