Skip to content
QtWS25 Last Chance
  • 0 Votes
    16 Posts
    6k Views
    SGaistS
    Good ! Since everything is working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
  • How to store object in QSettings?

    Solved General and Desktop qsettings
    11
    0 Votes
    11 Posts
    4k Views
    S
    @TheBadger thanks a lot badger you have been of great help..
  • QSettings

    General and Desktop problem qsettings linux windows
    8
    0 Votes
    8 Posts
    2k Views
    L
    @mrjj "/home/denis/.config/newCompany/NotesManager.conf".It is path in Linux. "\HKEY_CURRENT_USER\Software\newCompany\NotesManager in windows
  • create QSettings object once or when needed

    General and Desktop qsettings
    3
    0 Votes
    3 Posts
    991 Views
    ravasR
    @alex_malyu Thanks!
  • 0 Votes
    3 Posts
    3k Views
    B
    @alex_malyu i will add unique id to every group and add group to QStringList so that i can get a order childGroup.
  • 0 Votes
    7 Posts
    3k Views
    MichalM
    error: invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>' enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)} I have just read that: Values of a registered type can be constructed dynamically via QMetaType::construct() There is an example in the link above. Thanks for your help! I will figure it out, still missing pure c++ knowledge ;)
  • How to store Windowlayout?

    QML and Qt Quick windowlayout qsettings
    4
    0 Votes
    4 Posts
    1k Views
    T
    Thanks! Looks exactly what I was looking for. CU mts
  • 0 Votes
    4 Posts
    3k Views
    X
    Hi, Thank you both for your suggestions! As this project is intended for industrial purposes I think XML is a great solution. I followed some tutorials on how to use XML on Qt and managed to make it work (as well as understand) pretty well for what I intended to do. I'm leaving here the tutorials I followed in case someone stumbles upon this thread with the same problem: (I apologize if this is not allowed) https://www.youtube.com/watch?v=NXGE5XUrRSI https://www.youtube.com/watch?v=NzQwJdcdRKE I had to make some changes to my project but it's easy to understand. Thank you, once again!
  • 0 Votes
    5 Posts
    5k Views
    H
    Well ... someone in a corporate environment here [1] really suffering from this bug after upgrading to openSUSE Leap 42.1 which ships with Plasma 5. Considering openSUSE Leap and SUSE Linux Enterprise Server are now so tightly coupled in development I suspect this bug will start to affect more and more users. I would like to add that sometimes it's not just an extra warning, but actually blocks the UI. Running strace on kwrite opening a file from a NFSv4 drive results in the following messages: open("/NFSv4mount/home/user/.config/kwriterc.lock", O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0644) = 9 fcntl(9, F_SETFD, FD_CLOEXEC) = 0 flock(9, LOCK_EX|LOCK_NB) = 0 fcntl(9, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable) write(2, "setNativeLocks failed: Resource "..., 56setNativeLocks failed: Resource temporarily unavailable ) = 56 write(9, "24895\nkwrite\nPC-123456\n", 23) = 23 open("/NFSv4mount/home/user/.config/kwriterc.lock", O_RDONLY|O_CLOEXEC) = 12 fcntl(12, F_SETFD, FD_CLOEXEC) = 0 fstat(12, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0 fstat(12, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0 read(12, "29337\nkwrite\nPC-123456\n", 16384) = 23 read(12, "", 16361) = 0 close(12) = 0 uname({sysname="Linux", nodename="PC-123456", ...}) = 0 kill(29337, SIG_0) = -1 ESRCH (No such process) open("/NFSv4mount/home/user/.config/kwriterc.lock", O_WRONLY|O_CLOEXEC) = 12 fcntl(12, F_SETFD, FD_CLOEXEC) = 0 flock(12, LOCK_EX|LOCK_NB) = 0 fcntl(12, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EAGAIN (Resource temporarily unavailable) close(12) = 0 close(9) = 0 unlink("/NFSv4mount/home/user/.config/kwriterc.lock") = 0 nanosleep({6, 400000000}, 0x7ffd3a249730) = 0 (the nanosleep timer just increases, meanwhile the kwrite window stays "blank" (actually whatever the background of the window was when it was started)). If I intervene and remove this file kwrite immediately returns and shows the file. And in subsequent starts the file opens immediately. Perhaps a workaround would be to move my .config directory back to local disk and place a symlink in my home folder to this on disk location. Relevant bug report: https://bugreports.qt.io/browse/QTBUG-43454 === My corporate environment, for those interested: [1] Using sssd.conf: services = nss, pam, autofs Using ldap to login, automount to mount a NFSv4 Kerberized mount.